POV-Ray : Newsgroups : povray.programming : change all textures : Re: change all textures Server Time
26 Jun 2024 15:58:26 EDT (-0400)
  Re: change all textures  
From: ABX
Date: 10 Jan 2005 02:40:44
Message: <0jb4u0dnv9cduq1bg86sfkrl0h1p2oanpc@4ax.com>
On 9 Jan 2005 15:54:17 -0500, "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:
> I need to do it in a program

The question is, which program? Since your (suggested) change would not remove
all memory allocations, the parsing/scene building could be not optimal. And
you could get not perfectly optimized build of the renderer. I suggest other
solution. I expect the writer application is open source (one of modelers,
right?). I imagine it could be possible to modify it's export routine from:

  #declare Object$(ID) = object{ ...AAA... pigment{ ...BBB... } }

to

  #macro PigObject$(ID)() ...BBB... #end
  #macro Object$(ID)() ...AAA... pigment{ PigObject$(ID)() } #end

(where $(ID) is some internal string or integer identificator of the object)

then you could simply add object with modeler testuring:

  object{ ObjectMyObject() }

or give it own texturing

  #macro PigObjectMyObject() red 1 #end
  object{ ObjectMyObject() }

You can extend this from pigments to finishes, texturing, materials etc. etc.
I hope that's clear and readable what I meant.

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.